<!DOCTYPE html>
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title></title>
    <th:block th:each="url : ${loginUrls}">
        <script type="text/javascript" th:src="${url}"></script>
    </th:block>
</head>
<body>
<script type="text/javascript" th:inline="javascript">
    (function(){
        var _CALLBACKED_ = false;
        window.logoutCallback = function() {
            _CALLBACKED_ = true;
            window.top.location=[[${redirectURL}]];
        };
        window.setTimeout(function(){
            if (!_CALLBACKED_) {
                window.logoutCallback();
            }
        }, 500);
    })();
</script>
</body>
</html>